#pragma once

#include "cocos2d.h"
#include <vector>
#include "sqlite3\include\sqlite3.h"

using namespace std;

class MusicListManager
{
	public:
	MusicListManager();
	~MusicListManager();

	struct MUSICSETINFO
	{
		string id;
		string title;
		string artist;
		string coverPath;
	};
	vector<MUSICSETINFO> listdata;

	protected:
	sqlite3* pdb;

	public:
	void loadAll();
};

class MusicLevelListManager
{
	public:
	MusicLevelListManager();
	~MusicLevelListManager();

	struct MUSICLEVELINFO
	{
		string id;
		string keys;
		string bpmmax;
		string bpmmin;
		string bgfile;
		string noter;
		string difficult;
		string level;
		string lastplayed;
		string highscore;
		string highevaluation;
		string highaccuracy;
		string isfullcombo;
		string iscleared;
		string notefile;
		string maptype;
	};
	vector<MUSICLEVELINFO> listdata;

	protected:
	sqlite3* pdb;
	
	public:
	void loadList(string id);
};